Skip to content

Instantly share code, notes, and snippets.

@macbedn
macbedn / yoradio_logo_www.md
Last active March 29, 2026 18:39
yoradio - własne logo w interfejsie www

Poniższy poradnik krok po kroku pokazuje, jak podmienić domyślne logo w interfejsie WWW yoRadio na własne, przygotowane w formacie wektorowym (SVG), oraz jak poprawnie powiązać jego elementy ze zmiennymi kolorów w pliku stylów theme.css.

Wymagania:

  • program Inkscape (do edycji grafiki wektorowej),
  • dowolny program do kompresji obsługujący format GZIP (np. 7-Zip).

Krok 1: Rozpakowanie oryginalnego pliku logo

Przejdź do katalogu źródłowego interfejsu webowego: yoRadio\data\www.

@ianhattendorf
ianhattendorf / arch-brother-dcp-j4120dw-installation.md
Created April 20, 2019 10:14 — forked from sieste/arch-brother-dcp-j4120dw-installation.md
Minimal instructions to install Printer/Scanner combo "Brother DCP-J4120DW" under Arch Linux

General

  • Power up the printer, install cartridges
  • Settings -> Wi-Fi -> Setup-Wizard to connect printer to your network
  • Settings -> Wi-Fi -> TCP/IP, note IP address (mine is 192.168.1.8)
  • check if printer is reachable on the network: ping 192.168.1.8
  • create new user "lp" in group "lp": sudo useradd -s /bin/false -g lp lp

Install printer

  • install driver from AUR: yaourt brother-dcpj4120dw
@sunmeat
sunmeat / Program.cs
Last active March 29, 2026 18:34
thread priority masterpiece :)
using System.Runtime.InteropServices;
class ThreadPriorityExample
{
static object locker = new();
static Random random = new();
const int STD_OUTPUT_HANDLE = -11;
static IntPtr consoleHandle = GetStdHandle(STD_OUTPUT_HANDLE);
@rebane2001
rebane2001 / bad-apple-text-demo.html
Last active March 29, 2026 18:34
bad apple text demo
<canvas id=c width=960 height=800></canvas>
<video id=v src="bad apfel.mp4" controls></video>
<script id=s>
/* Bad Apple text demo by Rebane */
const ctx = c.getContext("2d");
const words = s.textContent.replace(/\n/g,' ').replace(/ +/g,' ').split(/(?=[ ,.(<=])/);
const WIDTH = 960;
const HEIGHT = 720;
const fontSize = 20;
@Postrediori
Postrediori / MSVS-Links.md
Last active March 29, 2026 18:27
MS Visual Studio Installers and ISO direct links
@BornPsych
BornPsych / Ghostty-config-example
Created December 30, 2024 03:37 — forked from Mario-SO/config
Ghostty config example
# === Font Configuration ===
font-family = "" # String: Font name or empty to reset
font-family-bold = "" # String: Bold font variant
font-family-italic = "" # String: Italic font variant
font-family-bold-italic = "" # String: Bold-italic font variant
font-style = "" # String: Named font style or "false" to disable
font-style-bold = "" # String: Named bold font style
font-style-italic = "" # String: Named italic font style
font-style-bold-italic = "" # String: Named bold-italic font style
font-synthetic-style = "" # Values: "true", "false", "no-bold", "no-italic", "no-bold-italic"
@JadenGeller
JadenGeller / VirtualScrollView.swift
Last active March 29, 2026 18:25
Virtual Scrolling in SwiftUI
struct VirtualScrollView<Content: View>: View {
var axes: Axis.Set = .vertical
var showsIndicators: Bool = true
var alignment: Alignment = .topLeading
var width: CGFloat? = nil
var height: CGFloat? = nil
@ViewBuilder var content: (CGRect) -> Content
var body: some View {
GeometryReader { outerGeometry in
@richardblondet
richardblondet / README.md
Last active March 29, 2026 18:19
Create a simple API backend with Google App Script and a Spreadsheet

Google App Script CRUD

Inspired by this gist.

Getting Started

  1. Create a new App Script project.
  2. Paste the content of the file google-app-script-crud.gs in the default Code.gs file.
  3. Create a new Spreadsheet.
  4. Copy the Spreadsheet ID found in the URL into the variable SHEET_ID located in line 1 of your file.
@gutierrezps
gutierrezps / eeprom-test.ino
Created April 26, 2017 16:45
Arduino EEPROM test
/******************************************************
Arduino EEPROM Test
by Gutierrez PS 2017
http://github.com/gutierrezps
Based on John Boxall's idea of testing the lifespan
of Arduino's internal EEPROM:
http://tronixstuff.com/2011/05/11/discovering-arduinos-internal-eeprom-lifespan/
EEPROM is tested by writing a certain value to
@hostlogic1
hostlogic1 / chatgpt prompt
Created March 29, 2026 18:17 — forked from fluxion9/chatgpt prompt
Code files gist for Embedded Systems Diary
Create a modern, well-styled HTML page that allows controlling an ESP32’s LED over Wi-Fi. The page should have a dark theme with a centered container, rounded corners, and shadow. Inside, there should be a title “ESP32 LED Control”, two buttons — green “ON” and red “OFF” — that send GET requests to /on and /off endpoints using JavaScript XMLHttpRequest. When a button is pressed, display a small status message below (like “LED turned ON” or “LED turned OFF”). Use CSS for styling with a clean, minimal look and make it responsive and centered on the screen.